import LocalGeneralConfig from '../models/local-general-config';

/**
 * This service is intend to load the config info from json file in assets/config directory.
 */
export default class ConfigService {
  private static localGeneralConfig: LocalGeneralConfig;

  static async getLocalGeneralConfig(): Promise<LocalGeneralConfig> {
    if (!this.localGeneralConfig) {
      this.localGeneralConfig = new LocalGeneralConfig();
    }

    return this.localGeneralConfig;
  }
}